import json

import requests

# res= requests.get("https://www.aliyun.com/product/list")
res= requests.get("https://merak.alicdn.com/delivery/1700838.json")



def write_to_file(content):
    with open('aliyun_result.txt', 'a', encoding='utf-8') as f:
        # f.write(json.dumps(content, ensure_ascii=False) + '\n')
        f.write(json.dumps(content) + '\n')
print(res.text)


if __name__ == '__main__':
    write_to_file(res.text)